package com.automannn.atm_back.modules.system.mapper;

import com.automannn.atm_back.modules.system.entity.SysPermissionDataRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenkh
 * @time 2020/6/26 21:00
 */
public interface SysPermissionDataRuleMapper extends BaseMapper<SysPermissionDataRule> {
    /**
     * 根据用户名和权限id查询
     * @param username
     * @param permissionId
     * @return
     */
    List<String> queryDataRuleIds(@Param("username") String username, @Param("permissionId") String permissionId);

}
